package com.lilihub.miaosha.controller;

import com.lilihub.miaosha.common.Result;
import com.lilihub.miaosha.domain.MiaoshaUser;
import com.lilihub.miaosha.service.MiaoshaUserService;
import com.lilihub.miaosha.service.RedisService;
import com.lilihub.miaosha.vo.GoodsVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @BelongsProject: miaosha
 * @BelongsPackage: com.lilihub.miaosha.controller
 * @Author: LiYing
 * @CreateTime: 2021-04-27 15:47
 * @Description:
 */
@Controller
@RequestMapping("/user")
public class UserController {



    @Autowired
    private MiaoshaUserService userService;

    @Autowired
    private RedisService redisService;



    @RequestMapping("/info")
    @ResponseBody
    public Result<MiaoshaUser> toLogin(Model model, MiaoshaUser user){

        return Result.success(user);
    }






}
